package com.itheima.demo;

public class Test {
    public static void main(String[] args) {
        Outer.Inner oi = new Outer().new Inner();
        oi.show();
        System.out.println(oi.a);
    }
}

class Outer{
    private int a = 20;
    class Inner{
        //成员内部类里面不能包含静态的属性和方法
        int a = 10;
        public void show(){
            System.out.println("外部类.this.变量名="+Outer.this.a);
            System.out.println("内部类"+a);
        }
    }
}

